//
//  WJKeyboardDemo1Controller.m
//  JerryIos
//
//  Created by 王军 on 2018/2/15.
//  Copyright © 2018年 王军. All rights reserved.
//

#import "WJKeyboardDemo1Controller.h"
#import <IQKeyboardManager/IQKeyboardManager.h>

@interface WJKeyboardDemo1Controller ()

@property (weak, nonatomic) IBOutlet UITextField *firstView;

@property (nonatomic, strong) IQKeyboardReturnKeyHandler *returnKeyHandler;

@end

@implementation WJKeyboardDemo1Controller

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //不使用键盘上的工具条
    _firstView.inputAccessoryView = [[UIView alloc] init];
    
    //键盘上的return按钮,最后一个是Done
    self.returnKeyHandler = [[IQKeyboardReturnKeyHandler alloc] initWithViewController:self];
    self.returnKeyHandler.lastTextFieldReturnKeyType = UIReturnKeyDone;
    
}

-(void) dealloc {
    self.returnKeyHandler = nil;
}


@end
